package hluck.me.srorage.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import hluck.me.srorage.sys.domain.SysPermission;
import hluck.me.srorage.sys.mapper.SysPermissionMapper;
import hluck.me.srorage.sys.service.SysPermissionService;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 老雷
 * @since 2021-02-15
 */
@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission> implements SysPermissionService {
    @Override
    public boolean removeById(Serializable id) {

        SysPermissionMapper permissionMapper=this.getBaseMapper();
        permissionMapper.deleteRolePermissionByPid(id);
        return super.removeById(id);
    }

}
